import request from '@/utils/request'

// 查询调研内容列表
export function listTeamResearch(query) {
  return request({
    url: '/eqxm/teamResearch/list',
    method: 'get',
    params: query
  })
}

// 查询调研内容详细
export function getTeamResearch(id) {
  return request({
    url: '/eqxm/teamResearch/' + id,
    method: 'get'
  })
}

// 新增调研内容
export function addTeamResearch(data) {
  return request({
    url: '/eqxm/teamResearch',
    method: 'post',
    data: data
  })
}

// 修改调研内容
export function updateTeamResearch(data) {
  return request({
    url: '/eqxm/teamResearch',
    method: 'put',
    data: data
  })
}

// 删除调研内容
export function delTeamResearch(id) {
  return request({
    url: '/eqxm/teamResearch/' + id,
    method: 'delete'
  })
}

// 导出调研内容
export function exportTeamResearch(query) {
  return request({
    url: '/eqxm/teamResearch/export',
    method: 'get',
    params: query
  })
}